package com.uestc.soft.mapper;

import com.uestc.soft.pojo.Log;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LogMapper {
    List<Log> selectByLogPage(@Param("index") int index,
                            @Param("limit") int limit,
                            @Param("level") String level,
                            @Param("event") String event,
                            @Param("host") String host,
                            @Param("state") String state,
                            @Param("deal") String deal);

    int selectLogCount(@Param("level") String level,
                    @Param("event") String event,
                    @Param("host") String host,
                    @Param("state") String state,
                       @Param("deal") String deal);

    void insertLog(@Param("log") Log log);

    void deleteByLogId(Integer id);

    void updateDeal(@Param("id") Integer id, @Param("deal") String deal);
}
